package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class GameNoticeModel implements Parcelable {

    @SerializedName("article_id")
    private String articleId;

    @SerializedName("title")
    private String title;

    @SerializedName("title_subtitle")
    private String titleSubtitle;

    @SerializedName("content")
    private String content;

    //公告中是否开启联系客服按钮以及特定文字说明，取值 1|开启 2|关闭
    @SerializedName("kf_btn_switch")
    private int KFBTSwitch;

    @SerializedName("jump_to_tab")
    private String jumpToTab;

    @SerializedName("extra_field")
    private String extraField;

    public int getKFBTSwitch() {
        return KFBTSwitch;
    }

    public void setKFBTSwitch(int KFBTSwitch) {
        this.KFBTSwitch = KFBTSwitch;
    }

    public String getJumpToTab() {
        return jumpToTab;
    }

    public void setJumpToTab(String jumpToTab) {
        this.jumpToTab = jumpToTab;
    }

    public String getExtraField() {
        return extraField;
    }

    public void setExtraField(String extraField) {
        this.extraField = extraField;
    }

    protected GameNoticeModel(Parcel in) {
        articleId = in.readString();
        title = in.readString();
        titleSubtitle = in.readString();
        content = in.readString();
        KFBTSwitch = in.readInt();
        jumpToTab = in.readString();
        extraField = in.readString();
    }

    public static final Creator<GameNoticeModel> CREATOR = new Creator<GameNoticeModel>() {
        @Override
        public GameNoticeModel createFromParcel(Parcel in) {
            return new GameNoticeModel(in);
        }

        @Override
        public GameNoticeModel[] newArray(int size) {
            return new GameNoticeModel[size];
        }
    };

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitleSubtitle() {
        return titleSubtitle;
    }

    public void setTitleSubtitle(String titleSubtitle) {
        this.titleSubtitle = titleSubtitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(articleId);
        dest.writeString(title);
        dest.writeString(titleSubtitle);
        dest.writeString(content);
        dest.writeInt(KFBTSwitch);
        dest.writeString(jumpToTab);
        dest.writeString(extraField);
    }
}
